package com.ruoyi.eamp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampMeetingPeopleMapper;
import com.ruoyi.eamp.domain.EampMeetingPeople;
import com.ruoyi.eamp.service.IEampMeetingPeopleService;

/**
 * 会议人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-09
 */
@Service
public class EampMeetingPeopleServiceImpl implements IEampMeetingPeopleService 
{
    @Autowired
    private EampMeetingPeopleMapper eampMeetingPeopleMapper;

    /**
     * 查询会议人员
     * 
     * @param id 会议人员主键
     * @return 会议人员
     */
    @Override
    public EampMeetingPeople selectEampMeetingPeopleById(Long id)
    {
        return eampMeetingPeopleMapper.selectEampMeetingPeopleById(id);
    }

    /**
     * 查询会议人员列表
     * 
     * @param eampMeetingPeople 会议人员
     * @return 会议人员
     */
    @Override
    public List<EampMeetingPeople> selectEampMeetingPeopleList(EampMeetingPeople eampMeetingPeople)
    {
        return eampMeetingPeopleMapper.selectEampMeetingPeopleList(eampMeetingPeople);
    }

    /**
     * 新增会议人员
     * 
     * @param eampMeetingPeople 会议人员
     * @return 结果
     */
    @Override
    public int insertEampMeetingPeople(EampMeetingPeople eampMeetingPeople)
    {
        return eampMeetingPeopleMapper.insertEampMeetingPeople(eampMeetingPeople);
    }

    /**
     * 修改会议人员
     * 
     * @param eampMeetingPeople 会议人员
     * @return 结果
     */
    @Override
    public int updateEampMeetingPeople(EampMeetingPeople eampMeetingPeople)
    {
        return eampMeetingPeopleMapper.updateEampMeetingPeople(eampMeetingPeople);
    }

    /**
     * 批量删除会议人员
     * 
     * @param ids 需要删除的会议人员主键
     * @return 结果
     */
    @Override
    public int deleteEampMeetingPeopleByIds(Long[] ids)
    {
        return eampMeetingPeopleMapper.deleteEampMeetingPeopleByIds(ids);
    }

    /**
     * 删除会议人员信息
     * 
     * @param id 会议人员主键
     * @return 结果
     */
    @Override
    public int deleteEampMeetingPeopleById(Long id)
    {
        return eampMeetingPeopleMapper.deleteEampMeetingPeopleById(id);
    }

    @Override
    public List<EampMeetingPeople> getattendeesList(int i) {
        return eampMeetingPeopleMapper.getattendeesList(i);
    }
}
